package com.szz.cardecision.mapper;

import com.szz.cardecision.entity.Gift;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

@Mapper
public interface GiftMapper {
    List<Gift> findAllActive();
    Optional<Gift> findById(@Param("id") Long id);
    int insert(Gift gift);
    int update(Gift gift);
}